package com.example.demo1.client;

import com.example.demo1.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "demo2",configuration = FeignConfig.class)
public interface Demo2Client {
    @GetMapping("/demo2/hello")
    String helloFromDemo2();
}
